package cn.jeeweb.web.modules.master.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ControlType;
import cn.xjzn.framework_Core.ModuleServe;
import cn.xjzn.framework_Core.StaticControl;
import com.baomidou.mybatisplus.annotations.TableField;


/**
 * Created by zll on 2019/11/6.
 */
public class MasterShifts extends DataEntity<String> implements ObjectMark {

    @TableField(value = "code")
    @Excel(name = "班次编号", orderNum = "0", width = 30.0D)
    @UiPropertyField(moduleId = ModuleServe.shiftsModule,propertyName = "code",labelText="班次编号",displayPosition =2)
    private String code;
    @TableField(value = "name")
    @Excel(name = "班次名称", orderNum = "1", width = 30.0D)
    @UiPropertyField(moduleId = ModuleServe.shiftsModule,propertyName = "name",labelText="班次名称",displayPosition =3,controlType= ControlType.DICTSELECTCONTROL,dictCode = "Shifts")
    private String name;
    @TableField(value = "start_time")
    @Excel(name = "开始时间", orderNum = "2", width = 30.0D)
    @UiPropertyField(moduleId = ModuleServe.shiftsModule,propertyName = "startTime",labelText="开始时间",displayPosition =4,staticControl = StaticControl.DATESTATICCONTROL)
    private String startTime;
    @TableField(value = "end_time")
    @Excel(name = "结束时间", orderNum = "3", width = 30.0D)
    @UiPropertyField(moduleId = ModuleServe.shiftsModule,propertyName = "endTime",labelText="结束时间",displayPosition =5,staticControl = StaticControl.DATESTATICCONTROL)
    private String endTime;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}
